
f = open("ecoli.data")
lines = f.readlines()
f.close()

lines = map( lambda x: x.split(' '), lines)
lines = map( lambda x: filter( lambda y: len(y) > 0, x)[1:-1], lines)
lines = map( lambda x: ','.join(x) + "\n", lines)

f = open("salida","w")
f.writelines(lines)
f.close()
